package com.cloud.pole.user.model.entity.account;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;

import lombok.Data;

/**
 * @author 
 */
@Table(name="user_account_bank")
@Data
public class UserAccountBank implements Serializable {
	/**
	 * 状态（0：无效 1：有效）
	 */
	public static final int ACCOUNT_STATUS_OK = 1;
	public static final int ACCOUNT_STATUS_ERR = 0;
	
    /**
     * id
     */
    @Id
    private Integer bankAccountId;

    /**
     * 用户id
     */
    @NotEmpty
    @Column(name="user_id")
    private Long userId;

    /**
     * 用户名
     */
    @NotEmpty
    @Column(name="user_name")
    private String userName;

    /**
     * 银行类型id
     */
    @Column(name="bank_type_id")
    private String bankTypeId;

    /**
     * 银行类型名称
     */
    @Column(name="bank_type_name")
    private String bankTypeName;

    /**
     * 开户行
     */
    @Column(name="bank_name")
    private String bankName;

    /**
     * 银行卡号
     */
    @Column(name="bank_card_no")
    private String bankCardNo;

    /**
     * 开户名
     */
    @Column(name="bank_user_name")
    private String bankUserName;

    /**
     * 状态（0：无效 1：有效）
     */
    @Column(name="account_status")
    private Integer accountStatus;

    /**
     * 时间
     */
    @Column(name="create_time")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}